<!-- 搜索区域 -->
<template>
  <div class="c-search-item">
    <div class="c-search-item__label">
      <slot name="label" :label="label">
        <el-text type="primary" class="c-search-item__label--content">{{ label }}</el-text>
      </slot>
    </div>
    <div class="c-search-item__content">
      <slot />
    </div>
  </div>
</template>

<script setup>
const props = defineProps({
  // 标签文本
  label: String,
})
</script>

<style lang="scss" scoped>
.c-search-item{
  display: inline-flex;
  align-items: center;
  margin-right: 20px;
  &__label{
    margin-right: 10px;
    &--content{
      font-weight: 700;
      font-size: 20px;
    }
  }
  &__content{
    flex: 1;
    display: flex;
    align-items: center;
  }
}
</style>
